<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">
    <title>inputData</title>
	
	<style>
		body {
		  padding-top: 3.5rem;
		}
	</style>
	
    <!-- Bootstrap core CSS -->
    <link href="styles/bootstrap.min.css" rel="stylesheet">
  </head>

  <body>

    <nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
      <div class="collapse navbar-collapse" id="navbarsExampleDefault">
        <ul class="navbar-nav mr-auto">
          <ol class="breadcrumb">
		    <li class="breadcrumb-item"><a href="selectCase.html">电子支付:选择案例</a></li>
			<li class="breadcrumb-item active" aria-current="page">参数设置</li>
	      </ol>
        </ul>
      </div>
    </nav>

    <main role="main">

      <div class="jumbotron">
        <div class="container">
          <h3>案例：</h3>
		  <h3>预期结果：</h3>
        </div>
      </div>

      <div class="container" style="text-align:center" >
      	<form id="content" method="post" onsubmit="return false" action="##"></form>
      </div>
	  <hr>
    </main>

    <footer class="container">
      <p>&copy; Company 电子支付</p>
    </footer>

    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script type="text/javascript" src="js/jquery-slim.min.js"></script>
    <script type="text/javascript" src="js/popper.min.js"></script>
    <script type="text/javascript" src="js/bootstrap.min.js"></script>
    <script type="text/javascript" src="js/jquery.min.js"></script>
    <script type="text/javascript" src="js/cookie_util.js"></script>
    <script type="text/javascript" src="js/json2.js"></script>
    <script type="text/javascript" src="js/layer/layer.js"></script>
	<script type="text/javascript">
		$(function(){
			if(localStorage.getItem("content")==null){
				$("#content").load('query.html',function(){
					$("#transId").attr("value",localStorage.getItem("interfId"));
					$("#merId").attr("value",localStorage.getItem("departmentId"));
					$("#version").attr("value",'1.0');
					$("input").bind("change", function () {
			            $(this).attr("value",$(this).val());
			        });
					
				});
			}else{
				$("#content").html(localStorage.getItem("content"));
				$("input").bind("change", function () {
		            $(this).attr("value",$(this).val());
		        });
			}
			
		});
		
		function generate(){
			var data = $('#content').serialize();
			var url = 'confirmData.do';
			$.post(
					url,
					data,
		            function (result) {
		                 if (result.state == 0) {
							var content = $("#content").html();
							localStorage.setItem('content', content);
							location.href='confirm.html';
		                 }
		             }
			);			
		}
		
	</script>    
  </body>
</html>
